
public class ArrayStackTest {

	public static void main(String[] argv)
	{
		char[] textCharArray = { 'H' , 'e' , 'l' , 'l' , 'o' , ' ' , 'W' , 'o' , 'r' , 'l' , 'd' };
		
		ArrayStack stack = new ArrayStack();
		for (int i = textCharArray.length - 1; i >= 0 ; i--) {
			stack.stackPush(textCharArray[i]);
		}
		
		stack.stackPrint();
		stack.stackPop();
		stack.stackPrint();
		stack.stackPop();
		stack.stackPrint();
		stack.stackPop();
		stack.stackPrint();
		stack.stackPop();
		stack.stackPrint();
		stack.stackPop();
		stack.stackPrint();
		
		System.out.println(stack.stackSize());
		stack.stackPush('e');
		stack.stackPrint();
		stack.stackPush('y');
		stack.stackPrint();
		stack.stackPush('B');
		stack.stackPrint();
		System.out.println(stack.stackTop());
		System.out.println(stack.stackEmpty());
		stack.stackClear();
		stack.stackPrint();
		System.out.println(stack.stackEmpty());
	}

}
